home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / GPM / FAQ.{_1 < prev    next >
Text File  |  1999-09-17  |  7KB  |  152 lines

  1.  
  2. This file tries to summarize the questions that I've been responding over
  3. and over. It is meant to save some time to both you and me :)
  4.  
  5. If your problem with gpm isn't described here, feel free to ask me by
  6. Email.
  7.  
  8. --
  9.     __ o La forza dei forti sta nel traversare le traversie con occhio sereno
  10.    _`\<,                                                        (Paperino)
  11. __( )/( )__     alessandro.rubini@linux.it  +39-382-529554
  12.  
  13.  
  14. ===========================================================================
  15. Q: Compilation fails with
  16.  
  17.     yacc  gpm-root.y
  18.     make: /usr/bin/make: cannot execute binary file
  19.     make: *** [gpm-root.c] Error 126
  20.  
  21. ---------------------------------------------------------------------------
  22. A: This is a typical error (I've got several of them reported), though
  23.    not related to gpm.
  24.  
  25.    It looks like you have an old slackware installation, like mine, or
  26.    another faulty setup. I've been reported that slackware-3 is wrong
  27.    as well.
  28.  
  29.    The 'yacc' executable is a shell script that calls bison, and it
  30.    lacks the '#!/bin/sh' line (or has it incorrect, missing the
  31.    '!'). I don't remember the details, but while it runs under your
  32.    shell, it can't be executed under make. I looked in the binfmt
  33.    sources in the kernel, and /bin/sh doesn't appear explicitly, so
  34.    you must fix the first line in the 'yacc' script, and everything
  35.    should go fine.
  36.  
  37.    Note however that the server has already been compiles. Only the
  38.    gpm-root client, written with yacc, is affected by this problem.
  39.  
  40. ===========================================================================
  41. Q: My serial mouse works in X with ms protocol, but behaves erratically
  42.    with gpm on the text console, and I get involuntary pastes.
  43.  
  44. ---------------------------------------------------------------------------
  45. A: Many ms protocol mice equipped with three buttons use an extension
  46.    to the protocol, which consists in repeating events (thus with no
  47.    effect under the normal protocol) to signal a change in the middle
  48.    button.  Unfortunately, some old true-ms protocol mice do repeat
  49.    events, thus triggering the middle-button in gpm.
  50.  
  51.    If you're running your mouse with ``-t ms'', you'd better try ``-t
  52.    bare'', which is the unadorned ms protocol of the old days. My
  53.    choice to use the third-button extension as the default, was taken
  54.    because a true ms protocol doesn't repeat enevt notification, and
  55.    because many three button mice feature the extension.
  56.  
  57. ===========================================================================
  58. Q: I have a serial mouse. It works fine except that when I try to drag
  59.    the mouse with the middle button pressed, gpm assumes that the middle
  60.    button has been released. Dragging with the other buttons works just
  61.    fine.
  62.  
  63. ---------------------------------------------------------------------------
  64. A: Your mouse uses an extension to the m$ protocol in order to report
  65.    the middle button. It sends empty events (i.e., no-motion &
  66.    no-button-change) in order to report a change in the status of the
  67.    middle button.  Unfortunately enough, some two-button devices do send
  68.    empty packets any now and then, so I added the ``-t bare'' decoding,
  69.    which is identical to the X decoding.
  70.  
  71.    Even those devices that do report the middle button often fail
  72.    miserably to report it correctly during mouse motion. So I've been
  73.    forced to disable middle-and-motion: there are much more faulty
  74.    devices than correct ones.
  75.  
  76.    However, the implementation of middle-and-motion had a typo till
  77.    version 1.10. Maybe now the alternate decoder works, but I can't
  78.    test it myself. If you want to try to generate drags, you can
  79.    change the ``#if 1'' in mice.c (M_ms) to ``#if 0'', in order to
  80.    select the ``#else'' decoder. The source embeds both decoders: the
  81.    no-drag is on by default because it was more reliable. Please
  82.    report to me if the complete decoder (marked by ``/* my own trial
  83.    ... */'') works well now.
  84.  
  85. ===========================================================================
  86. Q: My mouse doesn't sense the middle button in X, while it works with
  87.    gpm.
  88.  
  89. ---------------------------------------------------------------------------
  90. A: Gpm uses a different decoder (see the previous two answers). You
  91.    can use the ``-R'' option to repeat mouse data to X (look at the man
  92.    page).  However, as explained in the previous answer, this won't
  93.    generate drag events for the middle button (i.e. motion while the
  94.    button is down).
  95.  
  96. ===========================================================================
  97. Q: I have a busmouse, and I have the single-open problem. Is there any
  98.    way around it?
  99.  
  100. ---------------------------------------------------------------------------
  101. A: Try the -R option of gpm (look at the man page)
  102.  
  103. ===========================================================================
  104. Q: I run "-t ms", and I get double-paste when I press the middle button.
  105.    Is there any workaround?
  106.  
  107. ---------------------------------------------------------------------------
  108. A: Try "-t mman" instead.
  109.  
  110. ===========================================================================
  111. Q: I have one of the new devices of old dear Bill, and gpm doesn't work any
  112.    more. What can I do?
  113.  
  114. ---------------------------------------------------------------------------
  115. A: Bill chose to use its own Plug-and-Pray specification, which finally
  116.    managed to break what worked painlessly for ages.  The decoder for
  117.    any gpm up to 1.12 (and also any X version being used at the time)
  118.    is unable to deal with the new devices, which claim to be designed
  119.    to work with older drivers. Try to use "-t pnp" instead of "-t ms"
  120.    and see if it works with this gpm version. Actually, this version
  121.    might even work with "-t ms" or "-t bare", but I'm not sure about
  122.    it. If the version of X you run has problems, while gpm now works,
  123.    try passing the "-R" option to gpm (see the man page).  Note that
  124.    "-t pnp" is strongly discouraged, as any time the serial port is
  125.    opened (for example when switching from X to text mode if "-R" is
  126.    not active) it will take several seconds to be initialized -- a
  127.    design misfeature of pnp. If either "-t ms" or "-t bare" work use
  128.    them instead.
  129.    
  130.    If you are in the software field, you can enjoy the inaccuracies of
  131.    the specs and design bugs directly from the originators:
  132.    http://www.microsoft.com/hwdev/download/pnpcom.exe. You'll find the
  133.    following, and more:
  134.      - no support for real multitasking (the mouse driver must be able
  135.            to keep hold of processor time for at least 1 second).
  136.      - no pnp vendor will be able to support three buttons any more (no
  137.            more mouse protocols, all mice must behave the same).
  138.      - similary, only 1200 baud devices (any serial device) are supported,
  139.            because the initialization string of pnp devices only tells
  140.            the vendor and release, with no information about required
  141.            port configuration.
  142.      - people with UPS will have great troubles with ms software
  143.            because the pnp probing sequence plays with DTR, and w95
  144.            probes all serial ports.  This funny idea might turn off
  145.            the UPS connected with your computer just after booting w95.
  146.  
  147.    Don't despair. They will manage to make worse designs later on.
  148.  
  149.  
  150.  
  151.  
  152.